package com.ydch.spring.test.annaition;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp3 {
	public static void main(String[] args) {
		 ApplicationContext context = new ClassPathXmlApplicationContext("QualiferBeans.xml");
	      Profile profile = (Profile) context.getBean("profile");
	      profile.printAge();
	      profile.printName();
	}
}
